package com.song.cloud.order.config;

import com.song.cloud.common.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author ZhangGuisong
 * @Date 2021/3/2-21:08
 */

@FeignClient(value = "sentinel-provider-service",fallback = checkFallback.class)
public interface configOpenFeign {
    @GetMapping("/getData/{id}")
    public CommonResult getData(@PathVariable("id") Integer id);
}
